package com.jr.controller;

import com.jr.pojo.FlightAirports;
import com.jr.service.FlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/Flight/")
public class FlightController {

    @Autowired
    private FlightService flightService;

    @RequestMapping("find")
    public ArrayList<FlightAirports> find(FlightAirports flightAirports){
        System.out.println("搜索栏传值"+flightAirports.getCity_name());
        ArrayList<FlightAirports>  list = flightService.selectBy(flightAirports);
        return list;
    }

}
